﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AliIotLib
{
    /// <summary>
    /// 阿里请求回复成功的对象
    /// </summary>
    public class AliIotRequestBase
    {
        /// <summary>
        /// 阿里云为该请求生成的唯一标识符。
        /// </summary>
        public string RequestId { set; get; }
        /// <summary>
        /// 是否调用成功。true表示调用成功，false表示调用失败。
        /// </summary>
        public bool Success { set; get; }
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { set; get; }  
    }
    /// <summary>
    /// 阿里带数据的回复请求
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class AliIotRequest<T>: AliIotRequestBase
    {
        /// <summary>
        /// 数据
        /// </summary>
        public T Data { set; get; }
        /// <summary>
        /// 总共
        /// </summary>
        //public int Total { set; get; }
        ///// <summary>
        ///// 当前页
        ///// </summary>
        //public int Page { set; get; }
        //public int PageSize { set; get; }
        //public int PageCount { set; get; }
    }
}
